package com.carbon.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.carbon.dto.BatchDto;
import com.carbon.service.BatchService;
import com.carbon.mapper.BatchMapper;
import com.carbon.domain.Batch;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 生产批号(Batch)表服务实现类
 *
 * @author WangFK
 * @since 2023-08-22 20:28:46
 */
@Service
public class BatchServiceImpl extends ServiceImpl<BatchMapper, Batch> implements BatchService {
    @Resource
    private BatchMapper batchMapper;
    @Override
    public Batch getProductByBatchId(Integer batchId) {
        return batchMapper.getProductByBatchId(batchId);
    }

    @Override
    public BatchDto getProductIdByBatchId(Integer batchId) {
        return batchMapper.getProductIdByBatchId(batchId);
    }
}

